package io.github.betwowt.guava;

import com.google.common.base.Preconditions;
import org.junit.Test;
import org.springframework.http.ResponseEntity;

/**
 * guava Preconditions
 */
public class PreconditionsDemo {

    /**
     * 当 boolean 表达式为空时 抛出异常
     */
    @Test
    public void checkAguments() {
        Preconditions.checkArgument(2>2,"error");
    }
}
